package com.edu.entity.chat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Buy {
    private int id;
    private int buyer_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    private int satisfied;
    private int chat_id;

    public Buy() {
    }

    public Buy(int id, int buyer_id, Date createtime, int satisfied, int chat_id) {
        this.id = id;
        this.buyer_id = buyer_id;
        this.createtime = createtime;
        this.satisfied = satisfied;
        this.chat_id = chat_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBuyer_id() {
        return buyer_id;
    }

    public void setBuyer_id(int buyer_id) {
        this.buyer_id = buyer_id;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public int getSatisfied() {
        return satisfied;
    }

    public void setSatisfied(int satisfied) {
        this.satisfied = satisfied;
    }

    public int getChat_id() {
        return chat_id;
    }

    public void setChat_id(int chat_id) {
        this.chat_id = chat_id;
    }

    @Override
    public String toString() {
        return "Buy{" +
                "id=" + id +
                ", buyer_id=" + buyer_id +
                ", createtime=" + createtime +
                ", satisfied=" + satisfied +
                ", chat_id=" + chat_id +
                '}';
    }
}
